package com.ccl.iot.template;import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageView;

import com.ccl.iot.R;

public class ImageButtonView extends ImageView{
	private void initButtonStyle(){
		super.setFocusable(true);
		super.setClickable(true);
		super.setScaleType(ScaleType.CENTER);
		
		super.setPadding(0, 0, 0, 0);
		super.setBackgroundResource(R.drawable.imagebutton);
	}
	
	public ImageButtonView(Context context) {
		super(context);

		initButtonStyle();
	}

	public ImageButtonView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		
		initButtonStyle();
	}

	public ImageButtonView(Context context, AttributeSet attrs) {
		this(context, attrs, 0);
	}
}
